x86/mcheck: Minor cleanup to amd_nonfatal
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 15 Aug 2017 15:14:08 +0000 (15:14 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Aug 2017 17:21:32 +0000 (18:21 +0100)
commit2310da993bca1d9101804cbaf2817f38a38b6510
tree4a98b3b769919fbf8f5b9ca99df994751430e6ce
parent45bfd2b5ced6074bd2c87718846dba890185d6c5
x86/mcheck: Minor cleanup to amd_nonfatal

  * Drop trailing whitespace.
  * Move amd_nonfatal_mcheck_init() into .init.text and drop a trailing return.
  * Drop unnecessary wmb()'s.  Because of Xen's implementation, they are only
    compiler barriers anyway, and each wrmsr() is already fully serialising.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/amd_nonfatal.c